package com.iotechn.unimall.app.api.refundorder;

import com.iotechn.unimall.core.annotation.HttpMethod;
import com.iotechn.unimall.core.annotation.HttpOpenApi;
import com.iotechn.unimall.core.annotation.HttpParam;
import com.iotechn.unimall.core.annotation.HttpParamType;
import com.iotechn.unimall.core.annotation.param.NotNull;
import com.iotechn.unimall.core.exception.ServiceException;

@HttpOpenApi(group = "order", description = "订单服务")
public interface RefundOrderService {

    @HttpMethod(description = "申请退单列表")
    public Object getRefundOrderList(
            @NotNull @HttpParam(name = "userId", type = HttpParamType.USER_ID, description = "userId") Long userId
    ) throws ServiceException;


    @HttpMethod(description = "同意退单")
    public Object confirmRefundOrder(
            @NotNull @HttpParam(name = "userId", type = HttpParamType.USER_ID, description = "userId") Long userId
    ) throws ServiceException;
}
